package cn.smile.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/6/11
 * @Time: 14:17
 * @Description: No Description
 */
@RestController
@RefreshScope
public class TestController {

    @Value("${myusername}")
    private String myusername;

    @RequestMapping("/getProperties")
    public String getProperties(){
        return myusername;
    }

}
